package com.cashmanager.shared.vo;


public class Cashier extends ValueObject{
	public String getCashierCode() {
		return cashierCode;
	}
	public void setCashierCode(String cashierCode) {
		this.cashierCode = cashierCode;
	}
	public String getCashierSeq() {
		return cashierSeq;
	}
	public void setCashierSeq(String cashierSeq) {
		this.cashierSeq = cashierSeq;
	}
	public String getCashierTypeCode() {
		return cashierTypeCode;
	}
	public void setCashierTypeCode(String cashierTypeCode) {
		this.cashierTypeCode = cashierTypeCode;
	}
	public String getCashierTypeName() {
		return cashierTypeName;
	}
	public void setCashierTypeName(String cashierTypeName) {
		this.cashierTypeName = cashierTypeName;
	}
	public String getCashierCompanyName() {
		return cashierCompanyName;
	}
	public void setCashierCompanyName(String cashierCompanyName) {
		this.cashierCompanyName = cashierCompanyName;
	}
	public String getCashierCompanyContact() {
		return cashierCompanyContact;
	}
	public void setCashierCompanyContact(String cashierCompanyContact) {
		this.cashierCompanyContact = cashierCompanyContact;
	}
	public String getCashierBrandCode() {
		return cashierBrandCode;
	}
	public void setCashierBrandCode(String cashierBrandCode) {
		this.cashierBrandCode = cashierBrandCode;
	}
	public String getCashierBrandName() {
		return cashierBrandName;
	}
	public void setCashierBrandName(String cashierBrandName) {
		this.cashierBrandName = cashierBrandName;
	}
	public String getCashierModelCode() {
		return cashierModelCode;
	}
	public void setCashierModelCode(String cashierModelCode) {
		this.cashierModelCode = cashierModelCode;
	}
	public String getCashierModelName() {
		return cashierModelName;
	}
	public void setCashierModelName(String cashierModelName) {
		this.cashierModelName = cashierModelName;
	}
	public String getCashierModelDescription() {
		return cashierModelDescription;
	}
	public void setCashierModelDescription(String cashierModelDescription) {
		this.cashierModelDescription = cashierModelDescription;
	}
	private String cashierCode;
	private String cashierSeq  ;
	private String cashierTypeCode ;
	private String cashierTypeName ;
	private String cashierCompanyName ;
	private String cashierCompanyContact ;
	private String cashierBrandCode ;
	private String cashierBrandName ;
	private String cashierModelCode;
	private String cashierModelName;
	private String cashierModelDescription ;
	private int cashierId;
	public void setcashierId(int cashierId) {
		this.cashierId = cashierId;
	}
	
	public static class Fields {
		public final static String CASHIER_CDE = "cde";
		public final static String CASHIER_SEQ = "seq";
		public final static String CASHIER_TYP_CDE = "typ_cde";
		public final static String CASHIER_TYP_NAME = "typ_name";
		public final static String CASHIER_COM_NAME = "com_name";
		public final static String CASHIER_COM_CONT = "com_cont";
		public final static String CASHIER_BRAND_CDE = "brand_cde";
		public final static String CASHIER_BRAND_NAME = "brand_name";
		public final static String CASHIER_MODEL_CDE = "model_cde";
		public final static String CASHIER_MODEL_NAME = "model_name";
		public final static String CASHIER_MODEL_DESC = "model_desc";
			
	}
	public String toXML(){
		StringBuilder sb = new StringBuilder();
		return sb.append(fieldToXml(Fields.CASHIER_CDE,cashierCode)).
		   append(fieldToXml(Fields.CASHIER_SEQ, cashierSeq)).
		   append(fieldToXml(Fields.CASHIER_TYP_CDE,cashierTypeCode)).
		   append(fieldToXml(Fields.CASHIER_TYP_NAME, cashierTypeName)).
		   append(fieldToXml(Fields.CASHIER_COM_NAME,cashierCompanyName)).
		   append(fieldToXml(Fields.CASHIER_COM_CONT, cashierCompanyContact)).
		   append(fieldToXml(Fields.CASHIER_BRAND_CDE, cashierBrandCode)).
		   append(fieldToXml(Fields.CASHIER_BRAND_NAME, cashierBrandName)).
		   append(fieldToXml(Fields.CASHIER_MODEL_CDE, cashierModelCode)).
		   append(fieldToXml(Fields.CASHIER_MODEL_NAME, cashierModelName)).
		   append(fieldToXml(Fields.CASHIER_MODEL_DESC, cashierModelDescription)).toString();
		   		   
	}

}
